import { LogService } from './log.service';
import { ConfigService } from './config.service';
export class LogConfigService {
  constructor(
    private logService: LogService,
    private configService: ConfigService
  ) {}

  showData() {
    this.logService.logStart();
    this.configService.showData();
    this.logService.logEnd();
  }
}

export function logConfigFactory(logger: LogService, config: ConfigService) {
  return new LogConfigService(logger, config);
}
